var io = require('socket.io').listen(8085);

var machines = [{
    name: "Machine X",
    ip: "192.168.25.1",
    upTime: "12341245"
},{
    name: "Machine Y",
    ip: "192.168.25.2",
    upTime: "12341244"
},{
    name: "Machine Z",
    ip: "192.168.25.3",
    upTime: "12341245"
}];

io.sockets.on('connection', function(socket){
    socket.emit('machinesUpdate', machines)
    
    socket.on('list', function(data){
        //todo
    });
});